package bold.module.thrift.server;

import bold.module.thrift.genapi.User;
import bold.module.thrift.genapi.UserI;
import lombok.extern.log4j.Log4j2;

import java.util.List;

@Log4j2
class UserService implements UserI.Iface {
    @Override
    public User getName(User user) {
        log.info("getName ->{}", user);
        return user;
    }

    @Override
    public List<String> getList(User user) {
        log.info("getList ->{}", user);
        return user.getCourse();
    }

    @Override
    public boolean isNan(User user) {
        log.info("isNan ->{}", user);
        return user.isGender();
    }
}
